package com.gitee.wsl.common.ui.symbol

import com.gitee.wsl.common.ui.base.Padding
import com.gitee.wsl.mathematics.geometry.shape.Rectangle


fun Symbol.Companion.rectangle(left: Float = 0f,
                     top: Float = 0f,
                     right: Float = 0f,
                     bottom: Float = 0f) = Rectangle(left, top, right, bottom)

operator fun Rectangle.plus(other: Padding): Rectangle {
    return Rectangle(
        this.left - other.left,
        this.top - other.top,
        this.right + other.right,
        this.bottom + other.bottom)
}

